<?php /* Smarty version Smarty-3.1.6, created on 2013-04-08 11:41:34
         compiled from "/home/zmx/erp2.1/DzhPHP/FrameWork/Tpl/User/add.tpl" */ ?>
<?php /*%%SmartyHeaderCode:10902068351623c6e24f257-70229173%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    '1a260d3132299b3ce2c4e104fbf42b0cc2fe194c' => 
    array (
      0 => '/home/zmx/erp2.1/DzhPHP/FrameWork/Tpl/User/add.tpl',
      1 => 1364183646,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '10902068351623c6e24f257-70229173',
  'function' => 
  array (
  ),
  'variables' => 
  array (
    'lang' => 0,
    'rs' => 0,
  ),
  'has_nocache_code' => false,
  'version' => 'Smarty-3.1.6',
  'unifunc' => 'content_51623c6e337c5',
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_51623c6e337c5')) {function content_51623c6e337c5($_smarty_tpl) {?><?php if (!is_callable('smarty_function_wz')) include '/home/zmx/erp2.1/DzhPHP/FrameWork/Extend/Vendor/Smarty/plugins/function.wz.php';
?><input type="hidden" id="url_2" value="<?php echo U('/AutoComplete/client');?>
">
<input type="hidden" id="url_3" value="<?php echo U('/AutoComplete/factory');?>
">
<form method="POST" action="<?php echo U('User/insert');?>
" onsubmit="return false">
<?php echo smarty_function_wz(array('action'=>"save,list,reset"),$_smarty_tpl);?>

<div class="add_box">
  <table cellspacing="0" cellpadding="0" class="add_table">
    <tbody>   
    <tr>
      <td class="width10"><?php echo $_smarty_tpl->tpl_vars['lang']->value['user_type'];?>
：</td>
      <td class="t_left">
      	<select name="user_type" combobox onchange="setCompanyUrl(this.value)">
      	<option value="1"><?php echo $_smarty_tpl->tpl_vars['lang']->value['company'];?>
</option>
      	<option value="2"><?php echo $_smarty_tpl->tpl_vars['lang']->value['client'];?>
</option>
      	<option value="3"><?php echo $_smarty_tpl->tpl_vars['lang']->value['factory'];?>
</option>
      	</select>__*__
      </td>
    </tr>
     <tr>
      <td><?php echo $_smarty_tpl->tpl_vars['lang']->value['use_usbkey'];?>
：</td>
      <td class="t_left">
      	<select name="use_usbkey" onchange="javascript:if(this.value==1){ $dom.find('#td_usekeylicens').show()}else{ $dom.find('#td_usekeylicens').hide();$dom.find('#usbkey').val('')}" combobox>
      	<option value="0"><?php echo $_smarty_tpl->tpl_vars['lang']->value['no'];?>
</option>
      	<option value="1"><?php echo $_smarty_tpl->tpl_vars['lang']->value['yes'];?>
</option>
      	</select>__*__
      </td>
    </tr>
     <tr id="td_usekeylicens" style="display:none;">
      <td><?php echo $_smarty_tpl->tpl_vars['lang']->value['use_usbkey_licens'];?>
：</td>
      <td class="t_left">
      	<input type="hidden" name="usbkey" id="usbkey" value=""> 
      	<input type="text" url="<?php echo U('/AutoComplete/epass');?>
" where="<?php echo urlencode("id not in (select usbkey from user where to_hide=1)");?>
" jqac>
      	__*__
      </td>
    </tr>
    <tr>
      <td><?php echo $_smarty_tpl->tpl_vars['lang']->value['user_name'];?>
：</td>
      <td class="t_left">
      	<input type="text" name="user_name" id="user_name" value="" class="spc_input" />__*__      
      </td>      
    </tr>    
    <tr>
      <td><?php echo $_smarty_tpl->tpl_vars['lang']->value['real_name'];?>
：</td>
      <td class="t_left" id="td_user_name"> 
      <input type="text" id="employee_name" name="real_name" url="<?php echo U('/AutoComplete/employee');?>
" jqac>
       	 <?php echo smarty_function_quicklyAdd(array('module'=>"Employee"),$_smarty_tpl);?>

       	
      </td>      
    </tr>    
    <tr>
      <td><?php echo $_smarty_tpl->tpl_vars['lang']->value['user_password'];?>
：</td>
      <td class="t_left">
      	<input type="password" name="user_password" id="user_password" value="" class="spc_input" />__*__
      </td>
    </tr>
    <tr>
      <td><?php echo $_smarty_tpl->tpl_vars['lang']->value['user_confirm_password'];?>
：</td>
      <td class="t_left"> 
     		<input type="password" name="user_password_confirm" id="user_password_confirm" value="" class="spc_input" />__*__
     </td>
    </tr>
    <tr>
      <td><?php echo $_smarty_tpl->tpl_vars['lang']->value['belong_role'];?>
：</td>
      <td class="t_left">
      	<input type="hidden" name="role_id" id="role_id" value="" />
     	<input type="text" url="<?php echo U('/AutoComplete/role');?>
" jqac>__*__
     </td>
    </tr>  
    <tr id="company_tr" style="display:none">
      <td><?php echo $_smarty_tpl->tpl_vars['lang']->value['belong_company'];?>
：</td>
      <td class="t_left" id="company_tr_td">
      <input type="hidden" name="company_id" id="company_id">
      <input type="text" id="company" url="">__*__
      </td>
    </tr>    
    <tr>
      <td><?php echo $_smarty_tpl->tpl_vars['lang']->value['user_ip'];?>
：</td>
      <td class="t_left">
      	<input type="text" name="user_ip" id="user_ip" value="" class="spc_input" /> (<?php echo $_smarty_tpl->tpl_vars['lang']->value['user_ip_separator'];?>
)
      </td>
    </tr>
    <tr>
      <td valign="top"><?php echo $_smarty_tpl->tpl_vars['lang']->value['comments'];?>
：</td>
      <td class="t_left"> 
      	<textarea name="comments" id="comments"><?php echo $_smarty_tpl->tpl_vars['rs']->value['comments'];?>
</textarea>
      </td>
    </tr>
    </tbody>
  </table> 
</div>
</form><?php }} ?>